Add ConvertOnlyMultiValuedClaimsToArray config for selective multi-valued claim handling#8157
Conversation
…l.j2 and feature defaults Expose the opt-in config key oauth.oidc.convert_only_multi_valued_claims_to_array (default false) in the identity.xml.j2 template and the feature default JSON so it can be set via deployment.toml. When true, claim values containing commas are emitted as a JSON array in JWT access tokens, ID tokens and UserInfo responses only when the claim's local-claim metadata has multiValued=true.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughTwo configuration files are updated to introduce a new OIDC setting, OIDC Multi-Valued Claims Config
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #8157 +/- ##
=========================================
Coverage 52.95% 52.95%
+ Complexity 20988 20932 -56
=========================================
Files 2186 2186
Lines 129041 129041
Branches 19224 19224
=========================================
Hits 68328 68328
Misses 52394 52394
Partials 8319 8319
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|



Purpose
Resolves wso2/product-is#27652.
Exposes the opt-in config key
oauth.oidc.convert_only_multi_valued_claims_to_array(defaultfalse) in theidentity.xml.j2template and the identity-core feature default JSON, so it can be set viadeployment.toml:When
true, a claim value containing the multi-attribute separator is emitted as a JSON array in JWT access tokens, ID tokens and the UserInfo response only when the claim's local-claim metadata hasmultiValued=true. Defaultfalsepreserves the legacy comma-split behaviour unchanged.Related PR
Consuming logic: wso2-extensions/identity-inbound-auth-oauth#3255
Doc
New config key; default
false→ no behavioural change for existing deployments.🤖 Generated with Claude Code